<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>
</head>

<body>
    <div id="app"></div>
    <script>
        const { renderer } = Vue;
        const container = document.getElementById("app");
        // 子节点是文字
        // let h = {
        //     tag: "div",
        //     props: {
        //         class: "test-render-class",
        //     },
        //     children:"123"
        // }

        // 子节点是标签
        let h = {
            tag: "div",
            props: {
                class: "test-render-class",
                onclick: ()=>{console.log("被点击")}
            },
            children: [{
                tag: "h1",
                children: "123"
            }]
        }
        Vue.renderer(h, container)
    </script>
</body>

</html>